package top.songxs.yygh.hosp.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import top.songxs.yygh.model.hosp.Schedule;

import java.util.Date;
import java.util.List;

@Repository
public interface ScheduleRepository extends MongoRepository<Schedule,String> {
    //两个任选一个
    Schedule findByHoscodeAndHosScheduleId( String hoscode, String hosschedule);

    Schedule findByHosScheduleId(String hosscheduleId);
    Schedule findByHoscodeAndDepcodeAndHosScheduleId( String hoscode, String depcode,String hosschedule);

    List<Schedule> findByHoscodeAndDepcode(String hoscode, String depcode);

    List<Schedule> findByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date date);

}
